<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                >
  

    <f:view contentType="text/html">





        <p:dataTable var="productionDT1" 
                     value="#{productionReportUI.modelSummary}"
                     id="productionTB1" 
                     rowStyleClass="#{productionDT1.projectedCount lt productionDT1.plannedCount ? 'bad' : 'good'}"
                     rows="5"
                     height="300"
                     >

            <p:column headerText="Product Name">
                <h:outputText value="#{productionDT1.productName}" style="font-size: 20px"/>
            </p:column>

            <p:column headerText="Planned">
                <h:outputText value="#{productionDT1.plannedCount}" style="font-size: 20px"/>
            </p:column>
            <p:column headerText="Actual">
                <h:outputText value="#{productionDT1.productionCount}" style="font-size: 20px"/>
            </p:column>
            <p:column headerText="Expected">
                <h:outputText value="#{productionDT1.projectedCount}" style="font-size: 20px"/>
            </p:column>

        </p:dataTable>

    </f:view>
</ui:composition>